package com.lhz.collector;

import com.lhz.collector.common.ConfBean;
import com.lhz.collector.common.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Created by LHZ on 2017/3/3.
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        ConfBean confBean= SpringUtil.getBean(ConfBean.class);
        String str="agent -n collector -f "+confBean.getCollectorConf();
        org.apache.flume.node.Application.main(str.split("\\s+"));
    }
}
